package com.wing.purchase.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description: 采购-质检任务明细
 * @Project: pur_quality_testing_task
 * @Date: 2024/12/26 10:28
 * @Author: heZhou
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "pur_quality_testing_task_detail")
public class PurQualityTestingTaskDetail extends BaseEntity<PurQualityTestingTaskDetail> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 质检任务编码
     */
    private String code;

    /**
     * 质检参数结果
     */
    private String parametersResult;

    /**
     * 质检评定结果:qualified(0,合格);unqualified(1,不合格);other(2,其他)
     */
    private String qualityTestingResult;

    @TableField(exist = false)
    private String qualityTestingResultName;

    /**
     * 质检任务单ID
     */
    private Long qualityTestingTaskId;

    /**
     * 检验工站ID-待定
     */
    private Long inspectDeviceId;

    /**
     * 检验工站编号
     */
    private String inspectDeviceCode;

    /**
     * 状态
     */
    private String status;

    /**
     * 状态名称
     */
    @TableField(exist = false)
    private String statusName;

    /**
     * 检出岗位
     */
    private Long checkPostId;

    /**
     * 检出部门
     */
    private Long checkDepId;

    /**
     * 处置方式
     */
    private String dealWay;

    @TableField(exist = false)
    private String dealWayName;

    /**
     * 创建人部门id
     */
    private String paperSlipPic;

    /**
     * 异常原因
     */
    private String errorResult;

    /**
     * 检验员id
     */
    private Long checkUserId;

    /**
     * 检验员名称
     */
    private String checkUserName;

    /**
     * 检验时间
     */
    private LocalDateTime checkTime;

    /**
     * 质检项信息
     */
    @TableField(exist = false)
    List<PurQualityTestingTaskDetailValue> detailValues;

}
